<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    //String对象
    /*
        var 变量名 = new String[s];
        var 变量名 = "数组";
     */
    var str1 = new String("zhangsan");
    console.log(str1);

    var str2 = 'zhangsan';
    console.log(str2);

    var str3 = '  zhangsan ';
    console.log(str3.trim());

</script>
</html>
